package com.hqyj.dao;

import com.hqyj.pojo.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertLoginUser(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<String> selectRoleByName(String sysName);

    //验证用户名是否重名
    int selectByName(String sysName);

    User login(User user);
    int selectUserIdByName(String gettUserName);

    List<User> selectListAll(User user);

    int selectNumber();

    void inserIntoUserRoleByLoginUser(int userId);
}